/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package estg.dae.projecto.bank.impl;

import estg.dae.projecto.bank.IAccountMovement;
import java.io.Serializable;
import java.util.Date;

/**
 *
 * @author Marco
 */
public class AccountMovementTO implements IAccountMovement, Serializable {
    private Date accountingDate;
    private Date movementDate;
    private double value;
    private String description;

    public Date getAccountingDate() {
        return accountingDate;
    }

    public Date getMovementDate() {
        return movementDate;
    }

    public double getValue() {
        return value;
    }

    public String getDescription() {
        return description;
    }

    public AccountMovementTO() {

    }

    public AccountMovementTO(IAccountMovement movement) {
        accountingDate = movement.getAccountingDate();
        movementDate = movement.getMovementDate();
        value = movement.getValue();
        description = movement.getDescription();
    }

}
